Link to this headingDHCP

  • UDP port 68 source, 67 destination
sequenceDiagram Client->>Server: Discover Server->>Client: Offer Client->>Server: Request Server->>Client: Acknowledge

Link to this headingDiscover

Contains

  • Macaddress
  • Magic cookie
  • DHCP Options

Link to this headingDHCPv4 Options

https://en.wikipedia.org/wiki/Dynamic_Host_Configuration_Protocol#Options

ID NumberCommon Name
0x01Request Subnet Mask
0x02Time Zone Offset
0x03Router IP Address
0x04Time Server
0x06DNS Servers
0x07Log Server
0x0CHostname
0x0FDomain Name
0x21Static routes
0x2CNetBIOS over TCP/IP Name Server
0x2DNetBIOS over TCP/IP Node Type
0x2ENetBIOS over TCP/IP Scope
0x32Preferred Address
0x33DHCP Lease Time
0x35DHCP Offer Request Type
0x36DHCP server IP
0x37Parameter Request List
0x42TFTP Server Name
0x77Domain Search
0xFFEnd of Options

Link to this headingRequest

Link to this headingAcknowledgement